package de.velvettear.squirrel.util;

import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.util.Log;
import de.velvettear.squirrel.kernel.Statics;

public class ClipboardHelper {

	private static ClipboardManager clipboardManager;
	
	public ClipboardHelper(Context context) {
		clipboardManager = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);
	}
	
	public static void copyToClipboard(String m_sText) {
		Log.i("copyToClipboard()", "BEGIN");
		ClipData clip = ClipData.newPlainText(Statics.APP_NAME, m_sText);
		clipboardManager.setPrimaryClip(clip);
		
		Log.i("copyToClipboard()", "BEGIN");
	}
	
}
